package com.jf.identity.dao.visexamid;

import com.jf.identity.entity.BehaviorFeedBack;
import com.jf.identity.entity.ExamBaseParam;
import org.apache.ibatis.annotations.Param;

/**
 * @author FCG
 */
public interface BehaviorFeedBackDao {
    /**
     * 提交监考员行为引导状态
     *
     * @param examBaseParam    考试信息
     *                         "orgCode": "机构代码",
     *                         "examId": "考试计划编号",
     *                         "examSessionNum": "考试场次编号",
     *                         "logicExamRoomNum": "逻辑考场号"
     * @param behaviorFeedBack 行为引导反馈
     *                         "uid":"UUID",
     *                         "behaviorId": "行为引导库id",
     *                         "behaviorDetailId": "行为引导id",
     *                         "behaviorStatus": "行为引导状态 0:正常 1:不正常",
     *                         "dateTime": "反馈时间2018-04-10 10:00:00",
     *                         "behaviorFrom": "上报来源（1：视频监考 2：现场监考）",
     *                         "remark": "上报备注"
     * @return 成功条数
     */
    int insertBehaviorFeedBackInfo(@Param("examBaseParam") ExamBaseParam examBaseParam,
                                   @Param("behaviorFeedBack") BehaviorFeedBack behaviorFeedBack);

    /**
     * 提交考场行为引导状态
     *
     * @param examBaseParam    考试信息
     *                         "orgCode": "机构代码",
     *                         "examId": "考试计划编号",
     *                         "examSessionNum": "考试场次编号",
     *                         "logicExamRoomNum": "逻辑考场号"
     * @param behaviorFeedBack 行为引导反馈
     *                         "uid":"UUID",
     *                         "behaviorId": "行为引导库id",
     *                         "behaviorStatus": "行为引导状态 0:正常 1:不正常",
     *                         "dateTime": "反馈时间2018-04-10 10:00:00",
     *                         "behaviorFrom": "上报来源（1：视频监考 2：现场监考）",
     * @return 成功条数
     */
    int insertBehaviorFeedBackStatus(@Param("examBaseParam") ExamBaseParam examBaseParam,
                                     @Param("behaviorFeedBack") BehaviorFeedBack behaviorFeedBack);

    /**
     * 查询 行为引导教师状态
     *
     * @param examBaseParam 考试信息
     *                      "examSessionNum": "考试场次编号",
     * @param uid           uid
     * @return beh_status
     */
    Integer getExaminerStatus(@Param("examBaseParam") ExamBaseParam examBaseParam,
                              @Param("uid") String uid);

    /**
     * 查询 行为引导考场状态
     *
     * @param examBaseParam 考试信息
     *                      "examSessionNum": "考试场次编号",
     * @param uid           uid
     * @return beh_status
     */
    Integer getExamRoomStatus(@Param("examBaseParam") ExamBaseParam examBaseParam,
                              @Param("uid") String uid);

}













